package com.pfzy.utildemo.activity.record.soundrecord.upload.Dto;

import androidx.annotation.Keep;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;

/**
 * 上载音频信息
 */
@Keep
public class UploadAudioInfo {
//    public static final String ORDER_TYPE_HELP = "help";
//    public static final String ORDER_TYPE_TRAVEL = "normal";
//    public static final String SCENE_TYPE_ALARM = "alarm";
//    public static final String SCENE_TYPE_ORDER = "order";
//    public static final String USER_TYPE_DRIVER = "driver";
//    public static final String USER_TYPE_PASSENGER = "customer";
    private String alarmId;// 报警Id
    private String businessLine;
    private ArrayList<String> filePathList;
    private boolean isAAC;
    private String orderNo;
    private long ossPosition;
    private String recordTimestamp;// 记录时间戳
    private String recordType;// 记录类型
    private String scene;
    private String uid;
    private String userType;

    @Retention(RetentionPolicy.SOURCE)
    public @interface RecordType {
    }

    @Retention(RetentionPolicy.SOURCE)
    public @interface UserTpye {
    }

//    public UploadAudioInfo(String alarmId, String recordTimestamp, ArrayList<String> filePathList) {
//        this.isAAC = false;
//        this.scene = "alarm";
//        this.alarmId = alarmId;
//        this.recordTimestamp = recordTimestamp;
//        this.filePathList = filePathList;
//        String path = filePathList.get(0);
//        this.isAAC = path.endsWith(".aac");
//    }
//
//    public UploadAudioInfo(int userType, String recordType, String businessLine, String orderNo, String recordTimestamp, String uid, ArrayList<String> filePathList) {
//        this.isAAC = false;
//        this.scene = SCENE_TYPE_ORDER;
//        this.recordType = recordType;
//        this.businessLine = businessLine;
//        this.orderNo = orderNo;
//        this.recordTimestamp = recordTimestamp;
//        this.uid = uid;
//        if (userType == SoundUtypeEnum.PASSENGER.value) {
//            this.userType = USER_TYPE_PASSENGER;
//        } else {
//            this.userType = USER_TYPE_DRIVER;
//        }
//        this.filePathList = filePathList;
//        String path = filePathList.get(0);
//        this.isAAC = path.endsWith(".aac");
//    }

    public String getRecordType() {
        return this.recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    public String getScene() {
        return this.scene;
    }

    public void setScene(String scene) {
        this.scene = scene;
    }

    public String getAlarmId() {
        return this.alarmId;
    }

    public void setAlarmId(String alarmId) {
        this.alarmId = alarmId;
    }

    public String getBusinessLine() {
        return this.businessLine;
    }

    public void setBusinessLine(String businessLine) {
        this.businessLine = businessLine;
    }

    public String getOrderNo() {
        return this.orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getRecordTimestamp() {
        return this.recordTimestamp;
    }

    public void setRecordTimestamp(String recordTimestamp) {
        this.recordTimestamp = recordTimestamp;
    }

    public String getUid() {
        return this.uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUserType() {
        return this.userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public ArrayList<String> getFilePathList() {
        return this.filePathList;
    }

    public void setFilePathList(ArrayList<String> filePathList) {
        this.filePathList = filePathList;
    }

    public long getOssPosition() {
        return this.ossPosition;
    }

    public void setOssPosition(long ossPosition) {
        this.ossPosition = ossPosition;
    }

    public void setAAC(boolean AAC) {
        this.isAAC = AAC;
    }

    public boolean isAAC() {
        return this.isAAC;
    }

    public String toString() {
        return "UploadAudioInfo{scene='" + this.scene + "', recordType='" + this.recordType + "', alarmId='" + this.alarmId + "', businessLine='" + this.businessLine + "', orderNo='" + this.orderNo + "', recordTimestamp='" + this.recordTimestamp + "', uid='" + this.uid + "', userType='" + this.userType + "', filePathList=" + this.filePathList + ", ossPosition=" + this.ossPosition + ", isAacFormate=" + this.isAAC + '}';
    }
}
